package cn.bs.busuo.front.hotel.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

/**
* 某城市酒店列表
* @TableName main_city_hotels
*/
@Data
@TableName("main_city_hotels")
public class CityHotels {

    /**
    * 数据ID
    */
    @ApiModelProperty("数据ID")
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
    * 城市ID
    */
    @ApiModelProperty("城市ID")
    @Range(min = 1,message = "城市ID必须大于0")
    private Long cityId;
    /**
    * 酒店ID
    */
    @ApiModelProperty("酒店ID")
    @Range(min = 1,message = "酒店ID必须大于0")
    private Long hotelId;



}
